﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GenericityDispatch.DispatchAttribute
{
    /// <summary>
    /// 节点特性
    /// </summary>
    public class FlowNodeAttribute : Attribute
    {
        /// <summary>
        /// 节点名称
        /// </summary>
        public string FlowNodeName { get; set; }


        /// <summary>
        /// 当节点下有排序实现
        /// </summary>
        public int Index { get; set; } = 0;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="queueName"></param>
        public FlowNodeAttribute(string flowNodeName, int index = 0)
        {
            FlowNodeName = flowNodeName;
            Index = index;
        }

    }
}
